/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.ucase.casemain.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 描述:  case_prosecution 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 *
 * @author framework generator
 * @date 2022年12月01日
 */
@Data
@Table(name = "upcase.case_prosecution")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CaseProsecution implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 案件id
     */
    @Column(name = "case_id")
    private String caseId;

    /**
     * 文书文号
     */
    @Column(name = "document_number")
    private String documentNumber;

    /**
     * 法院审理状态（1：一审中，2：一审已判决，3：二审中，4：二审已判决）
     */
    @Column(name = "trial_state")
    private String trialState;

    /**
     * 处罚决定书审批日期
     */
    @Column(name = "document_approve_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date documentApproveTime;

    /**
     * 诉讼立案日期
     */
    @Column(name = "litigation_register_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date litigationRegisterTime;

    /**
     * 是否删除，0 未删除；1已删除
     */
    @Column(name = "is_deleted")
    private String isDeleted;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 创建用户唯一标识
     */
    @Column(name = "create_user_id")
    private String createUserId;

    /**
     * 更新用户唯一标识
     */
    @Column(name = "update_user_id")
    private String updateUserId;

    private static final long serialVersionUID = 1L;
}